<template>
    <view class="bg-content">
        <div style="background-color: white;">
            <u-cell-item title="我的信息" @click="navigateTo(`/pages/sub/sub1-tabs/tabs/person/setting/setting-my-info/index`)"></u-cell-item>
            <u-cell-item title="授权第三方登录" @click="navigateTo(`/pages/sub/sub1-tabs/tabs/person/setting/setting-third-login/index`)"></u-cell-item>
            <u-cell-item title="退出登录" @click="logout()"></u-cell-item>
        </div>
    </view>
</template>

<script>

    import {CommonUtil} from "@/dev/core/utils/common.util";
    import {AuthUtil} from "@/dev/core/utils/auth.util";

    export default {
        data() {
            return {}
        },
        onLoad(options) {
            const _self = this

        },
        methods: {
            logout() {
                let _self = this;
                CommonUtil.alert({
                    title: '提示！',
                    content: "确认退出登录吗？",
                    showCancel: true, // 是否显示取消按钮
                    success: function (res) {
                        if (res.cancel) { // 点击取消,默认隐藏弹框
                        } else { // 点击确定
                            AuthUtil.logout('');
                        }
                    }
                });
            }
        }
    }
</script>

<style lang="scss" scoped>
</style>
